tap: add function to set speed