changed resource to resources