better tie handling