fixed call-time-by-reference