taking care of ligatures