clear out old comments and refactor greedy behavior to separate class