wrong variable for parameter and fixed typo