applying some error correction (still not 100% complete)