reducing output size, starting at 0 rather than mem_low