updated pre-loaded function to use vb.media