commit with function on