nested scope done