changed publishing style to include return function