made robust right alignment more flexible