remove local variable "result" by returning the value directly