what does flash do?