tweaked constructors in java