change logic to avoid Travis errors