restore getModel method