console log to make sure that loop is activated