changing form read string to read object to miligrate EOF error