added rtl support