protect against null value