change variable names and add comments