implemented getModel