add type in apy