code for headlineCTR project