update maketrans function