add : calculate level