A note on hook length formulas for trees