added negative tempo check