take out if media == null