updating the figure effect