protect from null values