added automatic application of alignment