added rescaling of tables for gen routines