fixed a few errors in 1823 matt