moving sanitize inside the loop