fixed incorrect variables