changed API to match multilevel