sean helped us to get it to work with different amounts of numbers