adding const as recommended by @dirk-thomas