update jar method to use .add() and .toString()