start securing malloc of printing