change for to auto