made the malloc more secure