I was using a double pointer but really only needed a single pointer