made some variables private