ffs
gave up and used tables.