capture the wstr explicitly