fixed mapreduce for state data