added active_level_for method