upgrade code for travis