constructor code for aligner