material index refactored to fix broken travis build