add xs as_double