repaired problems with avl initialise function