restructure toPostfix thought