please use proper in case state==null