just before commit and stack drawing