remove space after   `dir.begin()`