working in listener