improve supporting Right to left direction