fixing mx_add_variances example; tweak to read