extract to model