optimizate vector and debuging the round cap