now two if stmts on the flash