adding logical2grid