fixed body reading in inputFilter