working on locally defined scope