why null is passed here ... either it can be from templatedata or clientdata