added levels option
added levels option