set modified flag to true when populating