updated function for excerpt length