small changes to rate_Haxton.pyx that Sam will work on