moved methods that shoul not be called from outside of this class into private