avoid Scanner leak