implemented one listender method