cleaning up excerpt functions