added depth to vertex