create module for tree