fixed up a few errors