update media and add media field