removing pass-by-reference. shouldnt be there