minor optimization to wrtEn