added auto input