scaling working now, but bug in rotation