use string instead of ref