attempting to correct travis error, function too complex