made max speed a macro