simplifying get-data state setting