added video length code