map ABCD to hash