taking care of null