attempt to fix scope