getAll method