setting modified flag to true when populating