initial matrix work