error fixing and debugging 2