minor changes to scope