removing atoi in attempt to solve segfault