streamlining code and adding document published date
better dates