some utils about media