fixing console log