fix compiler compaining about unused variable warning.