moved it back to bools and added references (thanks to Conde2)

tested and works fine.