handle null value