add mat for ios