adding a resource