start with flash function