working on scan assign