added custom equation variable conversion