Don't you miss to change passing value here? I mean passing by value ==> passing by const ref.