resolving alignment issues