added new function to get media title