make rotation work