resolved using pointers, huzzah