Major fuck up by passing pointer directly to access the actual memory fixed as much as i could find for now will complete rest of the code then sleep