removed win_check func