adding publishme function