fixed interpolation to manage missing value better