change pairsum from float to int