replace auto-generated excerpt function