changing 'bool' to 'int'