replaced integers with booleans