finish the resource layer