dding an internet function to aggregate array