minor changes to fix a bug on the tach pin