change some variable type from float to int