added constant table generation