added a float cast when building the tables