added define for hex encoding