deal with non-float Y