model and resource