converting params to_i