built the Origin resource