update publisher for iterations and sleeping