guard against null value