changed variable names, types and locations of variables for the logs