remove countertype dependency