commit functions