changed to bool arrays