run motor inside interrupt