replaces everything with the first item except the last item. still working on it