removed unreferenced local variables.