modify statement using flash function in schedule handler.