error fixing and debugging 8