finished core hightlight generation, but needs improvement