set refer state object referenc todo auto gener method stub implement except 