refactored, but flash exists