added depth, endpoint clustering