added addLevel method