check for nulls