this is not related to your change but I think we don't need the scope at all here. 
You should be able to drop it.