work with logical elements