trying to remove the undefined in table