solved algorithm not running on window$