change some misleading variable name
fix first example code