added ltr and rtl code