revert reading n bytes code