New logic code changing pointers to list