clean up on commit functions