hilariously overengineered version of 140
challenge 140: fixed issue where var name wasn't split before being passed off to handler function