working on resource model