refactor build_number function and create a list to hold tokens build