added const qualifiers