asymptotics prototype for trees