as i said before. this is a bad design.
you should pass everything to constrictor function and after that object should be isolated from outside world