cahnged rec to res