fix translation by making variable_name a method