updated postPublication
fixed syntax errors