adds scope to SetRecords to ensure correct order