converted non public methods to private