changes to ref and rov...still not correct