remove nil values from lists