limiting gear shifts to max-gear:5