removed unneeded estrtol()