added type to media entity