check before commit