you can use array instead of reference.