return proper tcl result