commit the first time code