Revert "add flash algo"

This reverts commit c3a6fce73eb41d3ba9f848063bae574dda08984d.
algo