why is the scanner updated every frame?