replaced a resource