working on sorted scope
working on sorted scope 2