more troubleshooting, d[x] still offset when being passed into scnr:scan(), pre branching for troubleshooting