removed direct console log call