some input data sanitization