corrected some tabs and found a wrong test. There is a paranthesis
missing int piecewise expressions