use Vector instead of Array