fixed all the wrong checks for true instead of false