fixed pointers so that objects will still get added even if they have null pointer attributes