The foam goes under the eyepiece and works as a light shield.