added methods to model