horiz wall arr encode decode