slight improvment by checking min leaf size >= 2
dev scripts