create logical and