fix egregious mistakes