delta as a separate function