added missing methods to sanitize helper function