made some variables class level