corrected rotation behaviour