I added int casts to the variables