bit of preprocessing parsing