taking scope into account