empty instance problems solved by doing dx=(x1-10)*dec, instead of  dx=x1-10