modify and sanitize the code