changed from ints to bools