figured out fermat-full