change delta logic