defensive commit