added rotation limits (unfinished)