passing some strings by reference instead of by value for better performance