refactoring,correction large object stack overflow