cleaner hex formatting code