debugging 22-17 error