rename valiable c to res