Change id to instancetype