reduce the size of res table