You already delcared `media` further up.