const reference instead of copy by value