change the return type of some methods from int to bool