Fixed cond, the problem with it and cases switching