refactor flash