getting getAll method working properly (start)