First try of publish method