not sure why I never though of that before. Duh. Just sub var name for class if possible, don't need to match against if