added both syle and index