SETTING GRID CONNECTION PARAMETERS