scatter code draft