added getAll to model