rename current_level to current_depth