re-added depth argument