added media filtering to confidence map
merged and updating