updated incorrect function from strtol to strtoll