added fns to populate data fields