added published flag too
small changes