fixed issue 6: increase code coverage to 100%