added code for 40kHz signal