with modification of publish