scatter code