finish passing pointer to an array of char*