fixed variable names in trader