implementes word alignment