need to convert values into integers as putting them into a chain makes them strings