functions lsbX_write_bytes corrected