capitalization fixes. code is kind of funkybecause of workarounds for data formatting