work on the index, media type working