changed way model rotation is done