>.> do we need to cast res on the rp?