add setInteger and setState