fixed shift operations, wrote rotate right