added type to media