update result_of protocol (VC11 issue)
remove two unused local variables (VC11)