remove unneeded variable from applistener