remove unnecessary fromIntegral