gaurd against null resolved