refactor flashes