working on the schmitt trigger