added media code to conform to iphone settings