move function - working console log