modified for test coverage reporting