add span based alignment