implemented updating for lists