Slight adjustment to list output, shows undfined