debugging with extra credit