alignment algorithm added, doesn't work yet