dealing with working with hex and integers, didn't realize i was writing ints when values should have been in hex