change prev to surrogate_character