added some methods to hex