modified scopes and merged them in lookup method