type api fix2