modify nextplayer method