change foreignCollect to foreignKeys