adjusted addmedia line