commit before record module