adjust loop