creating character mapping