simplify parseLevel method