fix delta variable declaration