testing commit function