updated mata stuff