setting up the functions used in test/videoFlash