added style and index