added a small delta to make max function more distinctive