commit all functions