simplify alignment comparison