guard against memory leak by setting list item to null before setting to T