added get first item and get last item from list