issue #3: small improvement on aligner
Some small changes on aligner issue #50