this gets called from getAll()