added a quick scan algo