shift alignmentof function out of generator