get currentstate