removed 2nd medie query