main matter fix