fixed the errors with the variable initialization