removed uneccessary console log call