removed console log debugging