removed unused left over int p = (int)Environment.OSVersion.Platform; vars