made two variables that should have been private private