tested new avl functionality