stick to java object (Double[] vs double[]) usage for backward compatibility