renamed level1 and level2 to level2 and level3 respectively