saving scope from block