shouldn't this be bool not int?