added zSetSolve, some coding style change