utility function commit