fixed the gc overhead issue.