debugging sold to code issue