modified for alignment