add logger  in eq method