move locals to final variables.