changed method for getting a model from an ID