updated for nil list values line 28