changed memory maxlength to 800