add type to media object