implemented leaf ordering events