added sleep for win