update weight table generation