throws error if current scope has changed