changed methods to private