fixed bad result type