declare result as local variable