added type api