fixed zeroing, maxval and onebyte