solved depth problem