now managed to listen global scope