modify method in observer