view_coverage function