making output look more like java version for comparison