resolve null refrence