converting to two dimmension boolean