fixed wrong delta define