added autoAlign