moved style into index