fixed rotation: for some reason 90 and 270 degrees had to be switched