modify maze