implemented silence detection