now chars and flipped are unicode type instead of list