updating code to determine video container