changed to pointer instead of reference