returned getAll method