switching to gmp datatype