added processFigureInput