updating plotting