rename name to resource