remove unnecessary capture