add codecoverage gem
remove duplicate function