initial matrix code