removed duplicate code
modified travis file