updated to parse isRTL