making sure no changes are left uncommitted