added unit rotation