added depth flag