make the update listener correct