add flash method