video selection code