delete features first