change the speedRate name to speed
change speedRate to speed