added updates to if statements with lpraren and right paren