changed upto 3 level