fixed sytax error and changed variable names