need to fix return. can't pass reference