updated syntax for conditions