needed to change some wrong variable names