added auto advance