fixing code to add unit to character list