rotate parameter changed to degrees