creating sample as a subtree