transfer to strtol version