modify nested module functionality to used inbuilt