Jeremy, fix_expression is only called when "list" has one element. "n2 = list[1]" is trying to read a non-existent second element. HTH, Chris. ---------------