remove errors, debug, modify mi to appear to be more correct