make GetParam() a const method with no side effect