fixed some bugs. There is red code all over the hex's