changed decode case values to hexa
ordered case keys in decoder