just before leaving commit