added hex and actually made changes to main.c