smarter alignment location matching

mark function can figure out the data itself
comments