get rid of different const qualifiers warning