moved location of call to sanitize() so that it actually works now