normalized table
simpler code for normalized table