make alignment more robust