updated article logic to consider publish dates