add style macro and tree maker