made private some methods and vars