solved global alignment