cleanup, sort by score