add depth measure/ fix for no solution case