error fixing and debugging 10