Changed retrieve functions

switched from return list to reference list