fix improper use of const qualifier