flow chart extraction refining and processing