added a wrong priecewise
test