add then commit