moved createpar to tree