corrected fragmented code in another file that caused build errors