fixed  call-time pass-by-reference error