changed BASE_TYPE to BASETYPE