moved console log