added functionality for tachometer