change dir to Rcos