don't smooth straight lines with same values