v3.19.1
Income taxes (Details) - USD ($)
$ in Thousands
3 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Jan. 31, 2019
Income Tax Disclosure [Abstract]      
Income tax provision (benefit) $ 9,456 $ (2,038)  
Effective tax rate - (benefit) expense 18.40% (9.90%)  
Decrease in effective tax rate, primarily due to excess tax benefit on stock-based compensation expense 4.50% 31.80%  
Unrecognized tax benefits $ 1,900   $ 1,700
Unrecognized tax benefits that would impact the effective tax rate $ 1,700