delete trend if necessary