instead of boolean, return type should be int