error fixing and debugging 6