add leaves validation