error fixing and debugging 7