Working on errors in list poplation