initialize memory to get rid of code analysis warning
rename variables in format event to something that acutally means something useful and stop modifying the args array