convert membershipType to a number field instead of relationship