code submit first time