change argument name and fix some whitespace
fix bug with lists of nulls