inlining the delta loops