figuring out how to keep pointer as an array throughout compiled code