better data sanitization