modified styles, functions and index