updating figures