fix the issue in optimizing
remove make check from travis to shorten time