changes similar to LInux version