fixed censor() function