extracted converting model to resource;