added a conditional operator