changed integers to bools