made it easier to read

renamed some variables