rewrote un_ in terms of collapse, and worked on string functions.