updated to remove all console log statements