get right return type from call