add Matrix API