tidies up nullplayer fucntion