better logic for updating the build table