* add some put_if_unset parameters and one comment for the filter function
* changes for checktwophasesolution function, it is a temporary change