capture cleaned and optimized