fixed up the tempo math