move sanitize helper