added logical array support