rm unnecessary interpolation + fix global min and max finding