raises error if key is not a tuple
creates a check for characteristic function being a dictionary