publisher code/structure implemented