added loop for listening