use a hashmap for updated fields