added logical functions