adds the third parameter to indicate the type of media wanted