replaced if/else with switch case on type of held object
preparing to switch media