tried cleaning up a little bit

why are there 2 calls to updateTable though