updated how auto param is used