added rotation functions
changed rotation functions
work in progress