dismiss with checking condition