fix declaration of setListener