fixed even more variables
fixed parameters and missing bracket