why was this passed by const reference