Changed tie code