use model instead of annonymous object