sanitized some inputs