depth function added