This should definitely have a docstring, and ideally ct could be renamed a more understandable name.