replace q with more correct (and more correctly named) repr function