debugging error fix