add code coverage function