second-quarter loss