changed comment to variable name
added check to prevent replacing a system call with null