error fixing and debugging 3