added functions for per level query