most recent update of alignment routines