changed rotate to timer