added logical operator