insert more function in media
fix callback