updated userstate