deal with large docoment