removed pass-by-reference