change join into split function