finally removed strtok()