update after adding table api