While updating records using cursor