I refactored my code removing dynamically allocated struct pointers. The problem Iām having is I did not pass by reference when passing it as a parameter. so the actual value is not really modified that is why it appears to be null. I kinda feel stupid now. lol. anyways, Thanks for the help.