took out console log statements