added compact for nulls.