looks a bug in computing the lvl