impl raw calculator func