buffer size testing, reduce some iVars
error handling
稳定版本