changed bools to ints