cleanup Brown-matrix hws