restructure flash