replace const bool with bool in method signature