added hex functions