update index to find styles