update function

ror function added.