finalizing var index