bind commit function