added coverage calculation