added main to bidirectional style rule