fixing code rev.