fix R & T to work incasensetive