fix generation constants