- modified get depth
- added dump for BA