renaming types parameter to number_types