changes the return in getAll to the function in the accessor