added helper for angular tree