replaced some faulty variable names