added depth factory
added depth factory