revised more variable names.