make sure int are cast to float