added logical opperator