updated interrupt to respond to speed trigger