resource-to-sequence pattern