slight optimization of index/styles