when json parses integers it sometimes casts them to float64. A quick fix to make sure it is actually a float needed tp be made