created function to implode array's