assign things to trees